package ag.script.project.standard;

import ag.script.project.standard.core.ScreensDes;
import ag.script.project.standard.entity.AgAppConfig;

import java.util.List;

public class Main {
    public static void main(String[] args) {
        AgAppConfig config = new AgAppConfig();
        config.setName("创造与魔法");
        config.setVersion("v0.0.1");
        config.addScreen("1080x");
        config.addScreen("x1920");
        config.addScreen("1080x1920");

        //获得程序名称的拼音
        String appNamePinyin = config.getAppNamePinyin();
        System.out.println(appNamePinyin);

        //获得屏幕描述信息
        List<ScreensDes> parse = config.getScreenDes();
        for (ScreensDes screen : parse) {
            System.out.println(screen);
        }

        //自动转换为json格式的代码
        System.out.println(config);
    }
}